package net.arogarth.aws.android.manager;

import net.arogarth.aws.android.manager.dbmodels.AwsAccount;
import android.app.Application;
import android.content.Context;

public class AwsManager extends Application {
	private static AwsAccount currentAwsAccount;
	private static String selectedRegion = "";
	public static Context myAppContext;
	
	public void onCreate() {
		super.onCreate();
		
		AwsManager.myAppContext = getApplicationContext();
	}
	
	public static AwsAccount getCurrentAwsAccount() {
		return currentAwsAccount;
	}

	public static synchronized void setCurrentAwsAccount(
			AwsAccount currentAwsAccount) {
		AwsManager.currentAwsAccount = currentAwsAccount;
	}
	
	public static synchronized String getSelectedRegion() {
		return selectedRegion;
	}

	public static synchronized void setSelectedRegion(String selectedRegion) {
		AwsManager.selectedRegion = selectedRegion;
	}
}
